package edu.cs.networkmonitor.utils;

import java.util.Arrays;
import java.util.List;

public class NetUtils {

	public static String flattenList(List<String> receivers) {
		StringBuilder str = new StringBuilder();
		if (receivers != null) {
			for (String s : receivers) {
				str.append(s + ",");
			}
		}
		return str.toString();
	}

	public static String flattenArray(String[] emailList) {
		return flattenList(Arrays.asList(emailList));
	}
}
